<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE struts PUBLIC "-//Apache Software Foundation//DTD Struts Configuration 2.1//EN" "http://struts.apache.org/dtds/struts-2.1.dtd">
<struts>
	<package name="default" namespace="/" extends="json-default">
		<action name="register" class="controller.action.Register" method="register">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="confirm" class="controller.action.Confirm" method="confirm">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="examieeSearch" class="controller.action.ExamieeSearch" method="examieeSearch">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="findExamieeByClassroomId" class="controller.action.FindExamieeByClassroomId" method="findExamieeByClassroomId">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="examieeAll" class="controller.action.ExamieeAll" method="examieeAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="saveExaminee" class="controller.action.SaveExamiee"
			method="saveExaminee">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name="savePhoto" class="controller.action.SavePhoto"
			method="savePhoto">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name="login" class="controller.action.Login" method="login">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="saveAdmin" class="controller.action.SaveAdmin"
			method="saveAdmin">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name="adminAll" class="controller.action.AdminAll" method="adminAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="score" class="controller.action.GiveScore" method="giveScore">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="giveSecScore" class="controller.action.GiveSecScore" method="giveSecScore">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="findFirstScore" class="controller.action.FindFirstScore" method="findFirstScore">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="calculateScore" class="controller.action.CalculateScore" method="calculateScore">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="addClassroom" class="controller.action.AddClassroom" method="addClassroom">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="classroomAll" class="controller.action.ClassroomAll" method="classroomAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="saveClassroom" class="controller.action.SaveClassroom"
			method="saveClassroom">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name="expertAll" class="controller.action.ExpertAll" method="expertAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="expertLogin" class="controller.action.ExpertLogin" method="expertLogin">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="expertSearch" class="controller.action.ExpertSearch" method="expertSearch">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="saveExpert" class="controller.action.SaveExpert"
			method="saveExpert">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
		<action name="examAll" class="controller.action.ExamAll" method="examAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="scoreAll" class="controller.action.ScoreAll" method="scoreAll">
			<result name="success" type="json">
				<param name="root">result</param>
			</result>
		</action>
		<action name="saveExam" class="controller.action.SaveExam"
			method="saveExam">
			<result name="success" type="json">
				<param name="contentType">text/html</param>
			</result>
		</action>
	</package>
	<package namespace="/" name="root" extends="struts-default">
	<action name="examieeExcel" class="controller.action.DownloadExcel"
			method="downLoad">
			<result name="success" type="stream">
				<param name="contentType">application/msexcel</param>
				<param name="inputName">inputStream</param>
				<param name="contentDisposition">attachment;filename="examiee.xls"</param>
				<param name="bufferSize">2048</param> 
			</result>
			<result name ="error">/index.jsp</result>
		</action>
	<action name="scoreExcel" class="controller.action.DownloadFinalScoreExcel"
			method="downLoad">
			<result name="success" type="stream">
				<param name="contentType">application/msexcel</param>
				<param name="inputName">inputStream</param>
				<param name="contentDisposition">attachment;filename="score.xls"</param>
				<param name="bufferSize">2048</param> 
			</result>
			<result name ="error">/index.jsp</result>
		</action>

	</package>
	
</struts>    
